package com.jfinal.ext.ueditor.config;

import java.util.List;

/**
 * @author Timor
 * @version 1.0
 * @date 2023/01/04 20:47:12
 */
public class CatchImageConfig extends ImageUploadConfig {
    private List<String> localDomain = List.of("127.0.0.1", "localhost");
    private boolean enable = true;

    public List<String> getLocalDomain() {
        return localDomain;
    }

    public void setLocalDomain(List<String> localDomain) {
        if (null != localDomain) {
            this.localDomain = List.copyOf(localDomain);
        }
    }

    public boolean getEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
